package com.qm.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 @author james
 @create 2021-05-01 19:45
 */
public class AlipayConfig {

    // 作为身份标识的应用ID
    public static String app_id = "2021000117649098";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key  = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDDczBGDLOSu9dRPs3VYZ2X5IMFaWlyRDtB4nZdB444PmaZx8MeZN9ufqr5VeLuskaXm5fnxGZAbPdTuGoHCCJvJg9cySzM5K9LO1bVRjw13zNa0IeEA2+7bWarY0GKysdIuFGnVKtbgFjFmxl5EOuJk0qGqBLXORM6a/Lkch1hXLguN9IJZISvINpAiTLq/hTzhPeqPk4aE9rkUBhon6autWJpOU7WFDQrZfryng5cPGjLQ5+Vyb51RGXNTjTeKkXEUroV69W56fOomrBAU9HZ8GM+Rlnte4/QWUnArGvnZAq3JPOVt+GcJrGH05W8Bih7azLoab4t6pIuE098CTb7AgMBAAECggEAG7krD8SddCLQ1+VgrPO7tt/i9dGN83daMG4++9MmiTPQud9r/dOxHas59UQJfHItMTQQx/9Dwb+zFV0DLRwqRjnP1Al1IVsOwk0YdAgSYlHWpvsNPdx+7McH2SerFFTPD7GVY3bPF5uM+/qUEmgkAM+zsoYEpiKiZ5cITP8iy7xrl7zEZ65Kf/Ize/P1PQTzzf8W9IX+nbZMQ9fKWPJEHFvEtYLl7dWpVYac/5oyJ3XivqenccxZ/qtMXY+3GVFKNW6kUOin7Fucpv+yCLXTEhSBRzelEr844fdJ6+v+3bqQoXTZqYy4/Yw0fM0bpvFCsT1x9OtqiyIAwPRCufbgAQKBgQDr1qgFiz22daDb08SyOEOOthUlAuVW6htCwVaTQo9kQvLdy3YSeQRbYMGrHIHEwPb7u0M/mPbCJnH22TEN5J1BIKRBZ9hDfzkfvo85G5HaKn0gmXXcSu8xCgZgyYzttE7tvVbPDRbaZuw35BP/XhZXs9aweOSZgS+bov+Y5nDvAQKBgQDUKKA1PN2aR7DO44eqFujESUD7F1lR2lsEsL4WF53HhqQV/ElPSjyXtl/yQPuiIB3uCfyumSO8HVOr9KmU4YbAmU21DqfRGYwCG36os74ePgCbU36jPfgAcwrC+86P/0Uvl2Vo37IkclTbNYyu7hq7HtGq6FJ8nkj0swkJeD/h+wKBgAlS6Dun4J25Es3+FlWxccJPopBfB/Aiu0ctW53g0Mh2+SEZrSZX0HtIXP/F1b+QnXMgWS1Hf+H3ISRQO+c/tZPglX3cfClW+0ws/X6Vf3OvoFjMmGNINyKqMcxby42ORlyR0r/G1bN2xDoFc2DyOFHpU0CQ1wDWoao2jIJgAfEBAoGAAYtOJzULM91Dty3GxgEmro8N7wXre4IIWY9jwstnNZWQSiys5+vVZxFHv36jljl/nkTqVub8cJkSC9VbCp9dmLdE7oVtyULTVwyWLmoofxXacUb5S/zeejpcILEufrPP8Bm8/jdql4NRhMrt/DP1c9k0k3bfatLIGyfWcAA1DtMCgYEA1I/BqVsF9RgHXMBrMN0hcnj4CBO1Q3AidcwNr1IjrUYEubP/5ZRuBIh4uxjWIcnrTCj79CCGxzK/ytYCHv+tG/a1IBQqCgjNEN1Jq82IXMbxZ8O9SsHeu/TzGr5Pb59kE4QL1Ksi3IjGwB20+6neqdzcX3tFV+1HhzBFg6srjYY=";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAidusxQL0X/a4S5MGkeCSHDqFEBfz1Ymy6DHQ0XKslbr7ZRaM0EfkmrqgR0rISntOF8HMfb+yzJJ3Fd2XTmOUcEx9/akcqkhanbf9nWkBk7cyj1/qY2o3I1jKv0OeBnr5Tg4EfS6+kxcS3POJM770NjfG7NhjlnlZucg9d8WH0jmF/l5Jrc9jweCsEhKAhfcbs+n9Px7kVF77PcnBuBgY4hbiyK93kNA6JrdUGOOzOMnrX13FLFxp8Bg4m06/nXhSJV3n5eebuZxB9gd3x/geSKcDYCpBDOa4K+S2FS/GgY+yNUD70kbW8FmIygUMJlLW/S29Tz6bTAEvDFLl8aoOuQIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://www.qm.com/order/success";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
//    public static String return_url = "http://www.xiangyutao.website";
    public static String return_url = "http://www.qm.com/order/success";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "utf-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

}
